﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using TarreOA.TarreOAModels;
using TarreOA.TarreOABLL;

public partial class Flow_Info_TransactWork : System.Web.UI.Page {
    private int work_id;
    private int step;
    public string model;

    protected void Page_Load(object sender, EventArgs e) {
        if(!Page.IsPostBack) {
            if(Request.QueryString.Get("WR_ID") != null && Request.QueryString.Get("ST_SO") != null) {
                User curLoginUser = (User)Session["user"];
                work_id = int.Parse(Request.QueryString.Get("WR_ID"));
                step = int.Parse(Request.QueryString.Get("ST_SO"));
                Flow_WorkProcessData_Service fwpd_service = new Flow_WorkProcessData_Service();
                model = fwpd_service.FindFormDataModelByWorkId(work_id, step).ToString();
                MessageAwoke.Instance().RemoveKeyFromWorkFlow(curLoginUser.LoginName);
            }
        }
    }
}
